const fs = require("fs");
module.exports = {
	index: function(req, res, next) {
		var file_path = `${__dirname}/../../assets/templates/single-page/dist/index.html`;
		console.log("GET:", file_path);
		var file = fs.createReadStream(file_path);
		file.pipe(res);
	},
	static: function(req, res, next) {
		var req_path = req.param(0).trim();
		var file_path = `${__dirname}/../../assets/templates/single-page/dist/static/${req_path}`;
		console.log("GET:", file_path);
		var file = fs.createReadStream(file_path);
		file.pipe(res);
	}
}